<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">

    <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>

</head>
<body>
<table class="table">
    <tr>
        <td colspan="7"  style="text-align: center"><a class="btn btn-outline-primary" th:href="@{/goInsert}">新增</a></td>
    </tr>
    <thead class="thead-dark">
    <tr>
        <td scope="col">序号</td>
        <td scope="col">公司</td>
        <td scope="col">类型</td>
        <td scope="col">数量</td>
        <td scope="col" style="text-align: center">时间</td>
        <td scope="col">备注</td>
        <td scope="col">操作</td>
    </tr>
    </thead>
    <tbody>
    <tr th:each="f:${list}">
        <td scope="row" th:text="${f.getOid()}"></td>
        <td th:text="${f.getCompanyinfo().getCname()}"></td>
        <td th:text="${f.getTypeinfo().getTname()}"></td>
        <td th:text="${f.getOnumber()}"></td>
        <td th:text="${#dates.format(f.getOcrtime(),'yyyy-MM-dd HH:mm:ss')}"></td>
        <td th:text="${f.getOremark()}"></td>
        <td>
            <a  class="btn btn-outline-danger" th:href="@{/order/} + ${f.getOid()}">删除</a>
        </td>
    </tr>
    </tbody>
</table>
</body>
</html>